package org.dinner.order.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {
	private static SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
	
	public static String format(Date date) {
		return df.format(date);
	}
	
	public static Date truncateTime(Date date) {
		return org.apache.commons.lang.time.DateUtils.truncate(date, Calendar.DATE);
	}
}
